<?php

class Model_DbTable_Permissions extends Zend_Db_Table
{
    protected $_name = 'permissions';
    protected $_primary = 'pid';
    protected $_referenceMap = array(
        'Role' => array(
            'columns' => array(
                'role_id'
            ) ,
            'refTableClass' => 'Model_DbTable_Role' ,
            'refColumns' => array(
                'rid'
            )
        ) ,
        'Resources' => array(
            'columns' => array(
                'res_id'
            ) ,
            'refTableClass' => 'Model_DbTable_Resources' ,
            'refColumns' => array(
                'resid'
            )
        )
    );

    public function insert (array $data)
    {
        return parent::insert($data);
    }
}